<template>
  <h1>B</h1>
</template>
<script setup lang="ts">
import { getCurrentInstance } from 'vue'

const instance = getCurrentInstance()
instance?.proxy?.$Bus.on('on-click', (flag) => {
  console.log(flag)
})
</script>
<style scoped></style>
